package com.free.chat.entity.model;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.noear.solon.validation.annotation.NotNull;

import java.util.Date;
import java.io.Serializable;

/**
 * (ChatMsg)实体类
 *
 * @author zhbcm
 * @since 2022-10-21 20:00:10
 */
@Data
@TableName("chat_msg")
public class ChatMsg implements Serializable {

    private static final long serialVersionUID = -73327692029235004L;

    @TableId
    private Long id;

    @NotNull(message = "发送人信息不能为空")
    private Long sendUserId;

    @NotNull(message = "接收人信息不能为空")
    private Long acceptUserId;

    private String msg;

    /**
     * 消息是否签收状态
     * 1：签收
     * 0：未签收
     */
    private Integer signFlag;

    /**
     * 发送请求的事件
     */
    private Date createTime;

}

